jQuery(function($) {
	$('.f-grid-button').live('click',function() {
		var url = $(this).attr('name'), 
			method = "POST", 
			form = $(this.form);
		if (url.substr(0,1).toLowerCase() == 'l') {
			window.location = url.substr(1);
		} else {
			if (url.substr(0,1).toLowerCase() == 'g') method = "GET";
			form.find('input[name="_f_submit_"],input[name="_f_form_id_"]').remove();
			form.attr({action: url.substr(1), method: method }).submit();
		}
	});
	$('.f-grid-cell-editable input').live('focus',function() {
		var me = this;
		setTimeout(function() { me.select(); },1);
	});
});
